From: Michaƫl Cadilhac Date: Tue, 26 Dec 2006 20:27:12 +0000 (+0000) Subject: (Footnote-insert-footnote): Fix the search of the last footnote when X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~3157 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=ae3ddb5de242e7dbad78fee4d7f0e83121cae0ab;p=emacs.git (Footnote-insert-footnote): Fix the search of the last footnote when `footnote-spaced-footnotes' is nil. --- diff --git a/lisp/mail/footnote.el b/lisp/mail/footnote.el index da7e5fcf579..b2374490026 100644 --- a/lisp/mail/footnote.el +++ b/lisp/mail/footnote.el @@ -501,7 +501,8 @@ styles." (regexp-quote footnote-end-tag))) nil t) (unless (beginning-of-line) t)) - (goto-char (point-max))))) + (Footnote-goto-char-point-max) + (re-search-backward (concat "^" footnote-section-tag-regexp) nil t)))) (unless (looking-at "^$") (insert "\n")) (when (eobp)